package com.burstly.lib.component.networkcomponent;

import android.os.Handler;
import android.os.Looper;

public final class DelayedCallbackExecutor
{
  private Runnable mCallback;
  private final long mDelay;
  private final Handler mHandler = new Handler(Looper.getMainLooper());

  public DelayedCallbackExecutor(long paramLong)
  {
    this.mDelay = paramLong;
  }

  public void clear()
  {
    this.mHandler.removeCallbacks(this.mCallback);
  }

  public void execute(Runnable paramRunnable)
  {
    if (paramRunnable != null)
    {
      this.mCallback = paramRunnable;
      this.mHandler.postDelayed(this.mCallback, this.mDelay);
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.DelayedCallbackExecutor
 * JD-Core Version:    0.6.2
 */